![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
cli-git.io
Advanced tools
Readme
shorten and unshorten GitHub.com URL.
npm install -g cli-git.io
or npm install --save cli-git.io
.
gitio [ [-v|--version] | [-h|--help] | [ shorten [--check|-c]|unshorten <url> ]
$ gitio -h
Usage: gitio [ [-v|--version] | [-h|--help] | [ shorten [--check|-c]|unshorten <url> ] ]
$ gitio --version
1.0.0
$ gitio shorten "https://github.com/Gyumeijie/cli-git.io"
https://git.io/fx2Bg
$ gitio shorten "https://github.com/Gyumeijie/non-existent-repo"
https://git.io/fx2B9
$ gitio shorten -c "https://github.com/Gyumeijie/non-existent-repo"
Warning: https://github.com/Gyumeijie/non-existent-repo is not reachable!
https://git.io/fx2B9
$ gitio shorten "https://github.com/Gyumeijie/non-existent-repo" -c
Warning: https://github.com/Gyumeijie/non-existent-repo is not reachable!
https://git.io/fx2B9
$ gitio unshorten https://git.io/fx2B9
https://github.com/Gyumeijie/non-existent-repo
$ gitio unshorten https://git.io/bad-path
Notice: Woops! We can't seem to unshorten that URL, this could be for a few reasons:
1. it may not be a short URL in the first place;
2. it may not be a real URL or could no longer be active;
3. it may not be a short URL compatible with git.io!
const githubURL = require('cli-git.io');
shorten(rawURL, callback, check);
githubURL.shorten('https://github.com/Gyumeijie/cli-git.io');
githubURL.shorten('https://github.com/Gyumeijie/cli-git.io', function(shortURL) {
// do some thing with the shorten URL here
});
githubURL.shorten('https://github.com/Gyumeijie/cli-git.io',undefined, true);
githubURL.unshorten('unshorten https://git.io/fx2B9');
githubURL.unshorten('unshorten https://git.io/fx2B9', function(rawURL) {
// do some thing with the unshorten URL here
});
The following are part of URLs which can be shorten or unshorten by cli-git.io
:
https://help.github.com
https://guides.github.com
https://gist.github.com
https://raw.githubusercontent.com
https://page.github.com
https://developer.github.com
https://user.github.io
FAQs
shorten and unshorten GitHub.com URL
We found that cli-git.io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.